package org.atovio.coolexam.service;

import org.atovio.coolexam.common.Role;
import org.atovio.coolexam.entity.Subject;
import org.atovio.coolexam.entity.User;

import java.util.List;
import java.util.Map;

public interface SubjectService {

    /**
     * 根据条件查询记录条数
     *
     * @param criteria 条件
     * @return 记录条数
     */
    int getCount(Map<String, Object> criteria);

    List<Subject> getAllSubject();

    void deleteById(int id);

    List<Subject> getLikeUserName(String name);

    Subject update(Subject subject);

    Subject getById(int id);

    void addSubject(Subject subject);
}
